package pkmn.move.indirectAction;

import pkmn.Pokemon;
import pkmn.status.BattleStatus;
import pkmn.status.BattleStatusEnum;

public class ApplyConfusion extends IndirectAction {

    public void execute(Pokemon pokemon) {

        //verify if already confusion
        if (pokemon.getBattleStatus().contains(new BattleStatus(BattleStatusEnum.confusion))) {
            System.out.println("But, it failed!");
            return;
        }
        //set status
        pokemon.setBattleStatus(BattleStatusEnum.confusion);
        System.out.println(pokemon.getName() + " became confused!");
    }
}
